﻿namespace MhAdmin.System;

/// <summary>
/// 编码规则服务
/// </summary>
public interface IRulesService : ITransient
{
    #region 查询

    /// <summary>
    /// 编码规则分页查询
    /// </summary>
    /// <param name="input">查询参数</param>
    /// <returns>编码规则分页</returns>
    Task<SqlSugarPagedList<DevRules>> Page(RulesPageInput input);

    /// <summary>
    /// 编码规则列表查询
    /// </summary>
    /// <param name="input">查询参数</param>
    /// <returns>编码规则列表</returns>
    Task<List<DevRules>> List(RulesPageInput input);


    /// <summary>
    /// 编码规则详情
    /// </summary>
    /// <param name="input">Id参数</param>
    /// <returns>详细信息</returns>
    Task<DevRules> Detail(BaseIdInput input);

    #endregion 查询

    #region 新增

    /// <summary>
    /// 添加编码规则
    /// </summary>
    /// <param name="input">添加参数</param>
    /// <returns></returns>
    Task Add(RulesAddInput input);

    #endregion 新增

    #region 编辑

    /// <summary>
    /// 修改编码规则
    /// </summary>
    /// <param name="input">编辑参数</param>
    /// <returns></returns>
    Task Edit(RulesEditInput input);

    #endregion 编辑

    #region 删除

    /// <summary>
    /// 删除编码规则
    /// </summary>
    /// <param name="input">删除参数</param>
    /// <returns></returns>
    Task Delete(List<BaseIdInput> input);

    #endregion 删除

    #region 测试

    /// <summary>
    /// 测试编码规则
    /// </summary>
    /// <param name="input">测试参数</param>
    /// <returns></returns>
    Task<List<string>> TestCode(RulesTestInput input);

    #endregion
}
